(function(){
    var winW = document.documentElement.clientWidth;
    if(winW>640){
        winW=640;
    }else if(winW<320){
        winW=320;
    }
    document.documentElement.style.fontSize = winW / 20 + 'px';
}());

